<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BEvent</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BEvent">
			<h1>BEvent</h1>
			<p>继承自<a href="BObject.html">BObject</a></p>
			<p id="resume">BEvent是控件处理的事件类，包含事件相关信息，以及处理结束数据。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BEvent()">BEvent</a>();</td></tr>
				<tr><td align="right"/><td><a href="#BEvent(Event)">BEvent</a>(Event type);</td></tr>
				<tr><td align="right"/><td><a href="#BEvent(Event, const BValue&)">BEvent</a>(Event type, const BValue& value);</td></tr>
				<tr><td align="right"/><td><a href="#BEvent(const BEvent&)">BEvent</a>(const BEvent& other);</td></tr>
				<tr><td align="right"/><td><a href="#~BEvent()">~BEvent</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#reset()">reset</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#reset(Event)">reset</a>(Event type);</td></tr>
				<tr><td align="right">void </td><td><a href="#reset(Event, const BValue&)">reset</a>(Event type, const BValue& value);</td></tr>
				<tr><td align="right">void </td><td><a href="#setType(Event)">setType</a>(Event type);</td></tr>
				<tr><td align="right">Event </td><td><a href="#type() const">type</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setValue(const BValue&)">setValue</a>(const BValue& value);</td></tr>
				<tr><td align="right">const BValue&amp; </td><td><a href="#value() const">value</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#accept() const">accept</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#accept(const BValue&) const">accept</a>(const BValue& result) const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#accepted() const">accepted</a>() const;</td></tr>
				<tr><td align="right">const BValue&amp; </td><td><a href="#result() const">result</a>() const;</td></tr>
				<tr><td align="right">BReal </td><td><a href="#time() const">time</a>() const;</td></tr>
				<tr><td align="right">BReal </td><td><a href="#now() const">now</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#keyState(Key) const">keyState</a>(Key key) const;</td></tr>
				<tr><td align="right">const BEvent&amp; </td><td><a href="#operator = (const BEvent&)">operator = </a>(const BEvent& other);</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BEvent是控件处理的事件类，包含事件相关信息，以及处理结束数据。首先是其类型枚举值enum Evnet，定义了所有的事件类型。通常事件会被向上层控件传递，若要使上层父控件不进行处理，需要对事件调用方法accept()将此事件标记为accepted()。在接受事件方法中可以指定结果值，有些事件关心此值。</p><p>方法time()可以取得此事件的发生时间，方法now()取得当前时间，相当于函数bTime()。keyState()方法可以获取此事件发生时指定按键的状态。</p>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BEvent()">
				<h3>BEvent();</h3>
			</div>
			<div id="BEvent(Event)">
				<h3>BEvent(Event type);</h3>
			</div>
			<div id="BEvent(Event, const BValue&)">
				<h3>BEvent(Event type, const BValue&amp; value);</h3>
			</div>
			<div id="BEvent(const BEvent&)">
				<h3>BEvent(const BEvent&amp; other);</h3>
			</div>
			<div id="~BEvent()">
				<h3>~BEvent();</h3>
			</div>
			<div id="reset()">
				<h3>void reset();</h3>
			</div>
			<div id="reset(Event)">
				<h3>void reset(Event type);</h3>
			</div>
			<div id="reset(Event, const BValue&)">
				<h3>void reset(Event type, const BValue&amp; value);</h3>
			</div>
			<div id="setType(Event)">
				<h3>void setType(Event type);</h3>
			</div>
			<div id="type() const">
				<h3>Event type() const;</h3>
			</div>
			<div id="setValue(const BValue&)">
				<h3>void setValue(const BValue&amp; value);</h3>
			</div>
			<div id="value() const">
				<h3>const BValue&amp; value() const;</h3>
			</div>
			<div id="accept() const">
				<h3>void accept() const;</h3>
			</div>
			<div id="accept(const BValue&) const">
				<h3>void accept(const BValue&amp; result) const;</h3>
			</div>
			<div id="accepted() const">
				<h3>bool accepted() const;</h3>
			</div>
			<div id="result() const">
				<h3>const BValue&amp; result() const;</h3>
			</div>
			<div id="time() const">
				<h3>BReal time() const;</h3>
			</div>
			<div id="now() const">
				<h3>BReal now() const;</h3>
			</div>
			<div id="keyState(Key) const">
				<h3>bool keyState(Key key) const;</h3>
			</div>
			<div id="operator = (const BEvent&)">
				<h3>const BEvent&amp; operator = (const BEvent&amp; other);</h3>
			</div>
		</div>
	</body>
</html>